import request from '@/utils/request'

// 查询客户信息列表
export function listCustomerInfo(query) {
  return request({
    url: '/customer/customerInfo/list',
    method: 'get',
    params: query
  })
}

//获取所有用户所有信息
export function listCustomerInfoAll() {
  return request({
    url: '/customer/customerInfo/all',
    method: 'get',
  })
}

// 查询客户信息详细
export function getCustomerInfo(id) {
  return request({
    url: '/customer/customerInfo/' + id,
    method: 'get'
  })
}

// 新增客户信息
export function addCustomerInfo(data) {
  return request({
    url: '/customer/customerInfo',
    method: 'post',
    data: data
  })
}

// 修改客户信息
export function updateCustomerInfo(data) {
  return request({
    url: '/customer/customerInfo',
    method: 'put',
    data: data
  })
}

